import itertools

print(len(list(itertools.permutations('12345',3))))
print(list(itertools.permutations('12345',3)))
